package com.example.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.domain.CustomRequire;
import com.example.mapper.CustomRequireMapper;
import com.example.service.CustomRequireService;

@Service
@Transactional
public class CustomRequireServiceImp implements CustomRequireService{
	@Autowired
	private CustomRequireMapper customRequireMapper;

	@Override
	public Page<CustomRequire> findAll(Page<CustomRequire> page) {
		// TODO Auto-generated method stub
		return customRequireMapper.findAll(page);
	}

	@Override
	public CustomRequire findById(Integer id) {
		// TODO Auto-generated method stub
		return customRequireMapper.findById(id);
	}

	@Override
	public void update(CustomRequire customRequire) {
		// TODO Auto-generated method stub
		customRequireMapper.update(customRequire);
	}

	@Override
	public void delete(Integer id) {
		// TODO Auto-generated method stub
		customRequireMapper.delete(id);
	}

	@Override
	public int add(CustomRequire customRequire) {
		// TODO Auto-generated method stub
		return customRequireMapper.add(customRequire);
	}

	@Override
	public void audit(String id, String state) {
		// TODO Auto-generated method stub
		 customRequireMapper.audit(id, state);
	}
}
